<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/admin/adminroleedit.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>组织机构 > <a href="./">角色管理</a> > ${(adminrole.id == 0)?string("新建","修改")}角色</div>
	<form method="post" action="editdo" onsubmit="return checkform()">
		<div class="rightbody m">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
					<tr>
						<td>角色名称：</td>
						<td>
							<input type="text" name="name" id="name" value="${adminrole.name!}" /> <span style="color:red">*</span>
						</td>
					</tr>
					<#if adminrole.id != 1>
						<tr>
							<td>操作权限：</td>
							<td>
								<b>文档管理：</b>
			                    <label><input type="checkbox" name="permission" value="office_article_manage"<#if checkPermission(adminrole,'office_article_manage')> checked</#if> />文档管理</label>
			                    <label><input type="checkbox" name="permission" value="office_article_gather"<#if checkPermission(adminrole,'office_article_gather')> checked</#if> />文档采集</label>
			                    <label><input type="checkbox" name="permission" value="office_article_check"<#if checkPermission(adminrole,'office_article_check')> checked</#if> />待我审核的文档</label>
			                    <label><input type="checkbox" name="permission" value="office_article_checked"<#if checkPermission(adminrole,'office_article_checked')> checked</#if> />经我审核的文档</label>
			                    <label><input type="checkbox" name="permission" value="office_article_receive"<#if checkPermission(adminrole,'office_article_receive')> checked</#if> />报送过来的文档</label>
			                    <label><input type="checkbox" name="permission" value="office_article_recycled"<#if checkPermission(adminrole,'office_article_recycled')> checked</#if> />文档回收站</label>
			                    <hr class="dashedstyle" />
			                    <b>静态生成：</b>
			                    <label><input type="checkbox" name="permission" value="office_create_all"<#if checkPermission(adminrole,'office_create_all')> checked</#if> />生成全部HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_index"<#if checkPermission(adminrole,'office_create_index')> checked</#if> />生成主页HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_columns"<#if checkPermission(adminrole,'office_create_columns')> checked</#if> />生成栏目HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_zhuanti"<#if checkPermission(adminrole,'office_create_zhuanti')> checked</#if> />生成专题HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_department"<#if checkPermission(adminrole,'office_create_department')> checked</#if> />生成部门HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_article"<#if checkPermission(adminrole,'office_create_article')> checked</#if> />生成文档HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_other"<#if checkPermission(adminrole,'office_create_other')> checked</#if> />生成其它HTML</label>
			                    <label><input type="checkbox" name="permission" value="office_create_leavemessage"<#if checkPermission(adminrole,'office_create_leavemessage')> checked</#if> />生成留言HTML</label>
			                    <hr class="dashedstyle" />
			                    <b>表单处理：</b>
			                    <#list forms as form>
			                    	<label><input type="checkbox" name="permission" value="office_form_${form.id}"<#if checkPermission(adminrole,'office_form_${form.id}')> checked</#if> />${form.name}</label>
			                    </#list>
			                    <hr class="dashedstyle" />
			                    <b>大众留言：</b>
			                    <label><input type="checkbox" name="permission" value="office_leavemessage_manage"<#if checkPermission(adminrole,'office_leavemessage_manage')> checked</#if> />留言管理</label>
			                    <hr class="dashedstyle" />
			                    <b>微博微信：</b>
			                    <label><input type="checkbox" name="permission" value="office_weibo_sync"<#if checkPermission(adminrole,'office_weibo_sync')> checked</#if> />微博同步</label>
			                    <label><input type="checkbox" name="permission" value="office_weixin_sync"<#if checkPermission(adminrole,'office_weixin_sync')> checked</#if> />微信同步</label>
			                    <hr class="dashedstyle" />
			                    <b>绩效统计：</b>
			                    <label><input type="checkbox" name="permission" value="office_articlestat_byadmin"<#if checkPermission(adminrole,'office_articlestat_byadmin')> checked</#if> />按用户统计</label>
			                    <label><input type="checkbox" name="permission" value="office_articlestat_bydepartment"<#if checkPermission(adminrole,'office_articlestat_bydepartment')> checked</#if> />按部门统计</label>
			                    <hr class="dashedstyle" />
			                    <b>组织机构：</b>
			                    <label><input type="checkbox" name="permission" value="yunwei_organ_user"<#if checkPermission(adminrole,'yunwei_organ_user')> checked</#if> />用户管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_organ_userrole"<#if checkPermission(adminrole,'yunwei_organ_userrole')> checked</#if> />角色管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_organ_department"<#if checkPermission(adminrole,'yunwei_organ_department')> checked</#if> />部门管理</label>
			                    <#if ismaster>
			                    	<label><input type="checkbox" name="permission" value="yunwei_organ_organization"<#if checkPermission(adminrole,'yunwei_organ_organization')> checked</#if> />单位管理</label>
			                    </#if>
			                    <hr class="dashedstyle" />
			                    <b>辅助插件：</b>
			                    <label><input type="checkbox" name="permission" value="yunwei_plugin_flutterwindow"<#if checkPermission(adminrole,'yunwei_plugin_flutterwindow')> checked</#if> />飘浮窗口管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_plugin_vote"<#if checkPermission(adminrole,'yunwei_plugin_vote')> checked</#if> />网上投票管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_plugin_frendlink"<#if checkPermission(adminrole,'yunwei_plugin_frendlink')> checked</#if> />友情链接管理</label>
			                    <hr class="dashedstyle" />
			                    <b>网站维护：</b>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_webinfo"<#if checkPermission(adminrole,'yunwei_webmaintain_webinfo')> checked</#if> />网站基础管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_colums"<#if checkPermission(adminrole,'yunwei_webmaintain_colums')> checked</#if> />网站栏目管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_homepage"<#if checkPermission(adminrole,'yunwei_webmaintain_homepage')> checked</#if> />主页频道管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_zhuanti"<#if checkPermission(adminrole,'yunwei_webmaintain_zhuanti')> checked</#if> />专题频道管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_datamodel"<#if checkPermission(adminrole,'yunwei_webmaintain_datamodel')> checked</#if> />数据模型管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_template"<#if checkPermission(adminrole,'yunwei_webmaintain_template')> checked</#if> />模板订制管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_webmaintain_visitstat"<#if checkPermission(adminrole,'yunwei_webmaintain_visitstat')> checked</#if> />网站访问量统计</label>
			                    <hr class="dashedstyle" />
			                    <b>系统设置：</b>
			                    <label><input type="checkbox" name="permission" value="yunwei_systemsetup_imagesize"<#if checkPermission(adminrole,'yunwei_systemsetup_imagesize')> checked</#if> />裁图尺寸管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_systemsetup_watermark"<#if checkPermission(adminrole,'yunwei_systemsetup_watermark')> checked</#if> />图片水印设置</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_systemsetup_gatherproject"<#if checkPermission(adminrole,'yunwei_systemsetup_gatherproject')> checked</#if> />采集项目管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_systemsetup_checkflow"<#if checkPermission(adminrole,'yunwei_systemsetup_checkflow')> checked</#if> />审核流程管理</label>
			                    <label><input type="checkbox" name="permission" value="yunwei_systemsetup_systemlog"<#if checkPermission(adminrole,'yunwei_systemsetup_systemlog')> checked</#if> />系统操作日志</label>
							</td>
						</tr>
					</#if>
					<tr>
						<td>排序：</td>
						<td>
							<input type="text" name="sort" id="sort" value="${adminrole.sort}" /> <span style="color:red">*</span>
						</td>
					</tr>
				</table>
				<input type="hidden" name="adminroleid" value="${adminrole.id}" />
			</div>
		</div>
		<div class="rightfoot">
			<div class="rightfootcontent">
				<input type="button" value="返 回" class="return" onclick="history.back()" />&nbsp;
	            <input type="submit" value="保 存" class="save" />
            </div>
        </div>
	</form>	
</body>
</html>